import { createI18n } from 'vue-i18n'
import { getLocalLanguage } from '@/common/general'
import lang from './index'

const localLanguage = getLocalLanguage()
export const i18n = createI18n({
    legacy: false,     // 使用composition API模式
    locale: localLanguage, // set locale
    messages: {...lang }, // set locale messages
    silentFallbackWarn: true,
    silentTranslationWarn: true, //关闭报错
});